
/**
 * Controller to run the sudoku solver
 * @author Code From HW Posting
 *
 */
public class Controller implements Runnable {

	private Model model;
	
	public Controller(Model m) {
		model = m;
	}
	
	
	@Override
	public void run() {
		try {
			Thread.sleep(1000);
			model.solve(0, 0);
		} catch (Exception e) {
			System.err.println("Error in run() " + e.getMessage());
		}
		
	}

}
